import request from '@/utils/request'

// 查询轨枕信息列表
export function listSleeper(query) {
  return request({
    url: '/system/detectionData/queryPagingSleeperlist',
    method: 'get',
    params: query
  })
}

// 查询轨枕信息详细
export function getSleeper(id) {
  return request({
    url: '/system/detectionData/' + id,
    method: 'get'
  })
}

// 查询轨枕信息详细
export function getBySleeperNo(query) {
  return request({
    url: '/system/detectionData/querySleeperDataBySleeperNo',
    method: 'get',
    params: query
  })
}

// 新增轨枕信息
export function addSleeper(data) {
  return request({
    url: '/system/sleeper',
    method: 'post',
    data: data
  })
}

// 修改轨枕信息
export function updateSleeper(data) {
  return request({
    url: '/system/sleeper',
    method: 'put',
    data: data
  })
}

// 删除轨枕信息
export function delSleeper(id) {
  return request({
    url: '/system/sleeper/' + id,
    method: 'delete'
  })
}


export function querySleeperlist(query){
  return request({
    url: '/system/detectionData/querySleeperlist',
    method: 'get',
    params: query
  })
}

export function querySleeperMiniMaxiPixelNoData(query){
  return request({
    url: '/system/detectionData/querySleeperMiniMaxiPixelNoData',
    method: 'get',
    params: query
  })
}

export function querySleeperDataBySleeperNo(query){
  return request({
    url: '/system/detectionData/querySleeperDataBySleeperNo',
    method: 'get',
    params: query
  })
}

export function queryWaveFromList(query){
  return request({
    url: '/system/detectionData/queryWaveFormList',
    method: 'get',
    params: query
  })
}

export function queryWaveFormByPixelList(query){
  return request({
    url: '/system/detectionData/queryWaveFormByPixelList',
    method: 'get',
    params: query
  })
}
